package com.guanyong.www.config;

import com.guanyong.model.KeyBaseModel;
import com.guanyong.services.KeybaseService;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/9/28 0028.
 */
public class HuatiUp {
    private static String upDate;
    public static String urlMD5="'03695d333dbc8a903d47de61e77e15ab','e03672dd8911f6a8f89ac747f2912b2c','842a773ba02b5687a36b596419555bbf','7c83302959a05d81dea71a2d1bf7b0a8'," +
            "'eb9445bfd3fe10aa36bfba1b2207dd41','7d0c74a840a1a83aab8bdecc72bb9b8d','96837c800ac155cee67edb49ed89d25d','289929d8ef095b6eba2fd957bd046a9f','42d04812b3c9daa3f52ecc5f8e70bcc5'," +
            "'a4e18c29167c4fe234cf27f39b8c867e','25203e8c29bd4df6c989c872c7a91b0e','5cfb48bf7a0abdbc31b7c7398ff6586e','67d047413ed81663a49b8bf2b29331d5'," +
            "'f24e2d4843fe20bd4c6a3a197bb806cb','258c243c270193603df9be391cd22ade','491f9ad2fd1c54b5f9c50e583e90dba6','d73781d30c5391f61cb64a59e1e2e2b8','413e154e7e47d5c2d3d69ea4cd94a626','2f9261416fec07c122fe17f950785ab0'";



    public static boolean ifDate(){
        if (upDate==null){
            Date date = new Date();
            SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
            String dateStr =formatter.format(date);
            upDate=dateStr;
            return true;
        }
        Date date = new Date();
        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
        String dateStr =formatter.format(date);
        if (!upDate.equals(dateStr)){
            return true;
        }
        return false;
    }



}
